package o;

import android.content.Context;
import com.huawei.appgallery.forum.base.card.bean.User;
import com.huawei.appgallery.forum.comments.api.ICommentDetailProtocol;
import com.huawei.appgallery.forum.option.api.ICommentReplyActivityProtocol;
import com.huawei.appgallery.forum.posts.api.IPostDetailProtocol;
import com.huawei.appgallery.forum.user.api.IUserHomePageProtocol;

public class ccc {
    private static ccc ˎ = new ccc();

    public static ccc ˋ() {
        return ˎ;
    }

    public void ˋ(Context context, String str, String str2, fjc o_fjc) {
        bqx.ˏ("LauncherComponent", "-------startCommentDetailActivity uri = " + str);
        fjb ˎ = fho.ˏ().ˋ("Comments").ˎ("comment.detail.activity");
        ICommentDetailProtocol iCommentDetailProtocol = (ICommentDetailProtocol) ˎ.ˊ();
        iCommentDetailProtocol.setUri(str);
        iCommentDetailProtocol.setDomainId(str2);
        iCommentDetailProtocol.setSourceType(2);
        iCommentDetailProtocol.setNeedComment(false);
        fiu.ˊ().ॱ(context, ˎ, o_fjc);
    }

    public void ॱ(Context context, User user, int i, long j, int i2, String str, int i3) {
        fjb ˎ = fho.ˏ().ˋ("Option").ˎ("option.reply.comment");
        ICommentReplyActivityProtocol iCommentReplyActivityProtocol = (ICommentReplyActivityProtocol) ˎ.ˊ();
        iCommentReplyActivityProtocol.setPid(j);
        iCommentReplyActivityProtocol.setCommentStatus(i2);
        iCommentReplyActivityProtocol.setDomainId(str);
        iCommentReplyActivityProtocol.setSectionId(i3);
        if (i == 1) {
            iCommentReplyActivityProtocol.setToUid("");
        } else if (i == 2 || i == 3) {
            iCommentReplyActivityProtocol.setToUid(user.ॱ());
            iCommentReplyActivityProtocol.setToUserName(user.ˋ());
        }
        fiu.ˊ().ˏ(context, ˎ);
    }

    public void ˏ(Context context, String str, int i, String str2) {
        fjb ˎ = fho.ˏ().ˋ("Posts").ˎ("post.detail.activity");
        IPostDetailProtocol iPostDetailProtocol = (IPostDetailProtocol) ˎ.ˊ();
        iPostDetailProtocol.setUri(str);
        if (i != 0) {
            iPostDetailProtocol.setErrorCode(i);
        }
        iPostDetailProtocol.setDomainId(str2);
        fiu.ˊ().ˏ(context, ˎ);
    }

    public void ॱ(Context context, String str, int i, String str2) {
        fjb ˎ = fho.ˏ().ˋ("User").ˎ("UserHomePageActivity");
        IUserHomePageProtocol iUserHomePageProtocol = (IUserHomePageProtocol) ˎ.ˊ();
        iUserHomePageProtocol.setUri("forum|user_detail");
        iUserHomePageProtocol.setUserId(str);
        iUserHomePageProtocol.setType(i);
        iUserHomePageProtocol.setDomainId(str2);
        fiu.ˊ().ˏ(context, ˎ);
    }
}
